<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div>
<dl>foo</dl>
<!-- A space inside TABLE element is required to crash -->
<table> </table>
</div>
<script>
test(function() {
    // Set selection to {"foo", 0} to {<table>, after anchor}
    document.execCommand('SelectAll');
    var dl = document.querySelector('dl');
    dl.contentEditable = true;
    dl.style.visibility = 'hidden';
    document.execCommand('InsertOrderedList');
});
</script>
